function WlPackVOtoArray_fun(ulvo,edit){
            var querydata=new Array();
            var items = new Array();
            var ul=new Array();
            var ulo="";
            var le="";
            var d="",t;
            var arraytag="0";//isArray
            if(ulvo!=null){
              if(ulvo.length==undefined){
                 ul[0]=ulvo;
                 arraytag="1";
                 le=1;
              }else{
                 ul=ulvo;
                 le=ul.length;
              }        
              if(edit==false){
                    for(var i = 0; i < le; i++){		
                        items = new Array();
                        ulo=ul[i];
                        items[0] = false;
                        items[1] = ulo["ns:id"];
                        
                        items[2] = ulo["ns:packName"];//
                        items[3] = ulo["ns:remark"];//
                        items[4] = ulo["ns:masterUnit"];//
                        t=ulo["ns:masterUnitNum"];if(t!=null&&t!=undefined){items[5] =  t['ns:upNumber'];}
                        items[6] = ulo["ns:innerPack"];//
                        t=ulo["ns:innerPackNum"];if(t!=null&&t!=undefined){items[7] =  t['ns:upNumber'];}
                        items[8] = ulo["ns:box"];//
                        t=ulo["ns:boxNum"];if(t!=null&&t!=undefined){items[9] =  t['ns:upNumber'];}
                        items[10] = ulo["ns:warehouse"];//
                        t=ulo["ns:warehouseNum"];if(t!=null&&t!=undefined){items[11] =  t['ns:upNumber'];}
                        items[12] = ulo["ns:other"];//
                        t=ulo["ns:otherNum"];if(t!=null&&t!=undefined){items[13] =  t['ns:upNumber'];}
//----------begin
//----------end--
                      if(arraytag=="0"){
                        querydata[i]=items;
                      }else{
                        querydata=items;
                      }
                    }
                  }else{//edit==true
                    for(var i = 0; i < le; i++){		
                        items = new Array();
                        ulo=ul[i];
                        items[0] = false;
                        items[1] = ulo["ns:id"];
                        
                        items[2] = ulo["ns:packName"];//
                        items[3] = ulo["ns:remark"];//
                        items[4] = ulo["ns:masterUnit"];//
                        t=ulo["ns:masterUnitNum"];if(t!=null&&t!=undefined){items[5] =  t['ns:upNumber'];}
                        items[6] = ulo["ns:innerPack"];//
                        t=ulo["ns:innerPackNum"];if(t!=null&&t!=undefined){items[7] =  t['ns:upNumber'];}
                        items[8] = ulo["ns:box"];//
                        t=ulo["ns:boxNum"];if(t!=null&&t!=undefined){items[9] =  t['ns:upNumber'];}
                        items[10] = ulo["ns:warehouse"];//
                        t=ulo["ns:warehouseNum"];if(t!=null&&t!=undefined){items[11] =  t['ns:upNumber'];}
                        items[12] = ulo["ns:other"];//
                        t=ulo["ns:otherNum"];if(t!=null&&t!=undefined){items[13] =  t['ns:upNumber'];}
/------------begin
/--end-------------
                      if(arraytag=="0"){
                        querydata[i]=items;
                      }else{
                        querydata=items;
                      }
                    }
                  } 
            }//!=null                     
            return querydata;
}